/*
package com.koala.upms.controller;
import java.util.Map;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.github.pig.common.constant.CommonConstant;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.github.pig.common.util.Query;
import com.github.pig.common.util.R;
import com.koala.upms.api.entity.SysRoleMenu;
import com.koala.upms.service.SysRoleMenuService;

*/
/**
 * <p>
 * 角色菜单表 前端控制器
 * </p>
 *
 * @author zhangchengji
 * @since 2019-05-12
 *//*

@RestController
@RequestMapping("/sysRoleMenu" )
public class SysRoleMenuController extends  {
@Autowired private SysRoleMenuService sysRoleMenuService;

*/
/**
 * 通过ID查询
 *
 * @param id ID
 * @return SysRoleMenu
 *//*

@GetMapping("/{id}" )
public R<SysRoleMenu> get(@PathVariable Integer id){
        return new R<>(sysRoleMenuService.selectById(id));
        }


*/
/**
* 分页查询信息
*
* @param params 分页对象
* @return 分页对象
*//*

@RequestMapping("/page" )
public Page page(@RequestParam Map<String, Object> params){
        params.put(CommonConstant.DEL_FLAG,CommonConstant.STATUS_NORMAL);
        return sysRoleMenuService.selectPage(new Query<>(params),new EntityWrapper<>());
        }

*/
/**
 * 添加
 * @param  sysRoleMenu 实体
 * @return success/false
 *//*

@PostMapping
public R<Boolean> add(@RequestBody SysRoleMenu sysRoleMenu){
        return new R<>(sysRoleMenuService.insert(sysRoleMenu));
        }

*/
/**
 * 删除
 * @param id ID
 * @return success/false
 *//*

@DeleteMapping("/{id}" )
public R<Boolean> delete(@PathVariable Integer id){
    SysRoleMenu sysRoleMenu =new SysRoleMenu();
    sysRoleMenu.setId(id);
    sysRoleMenu.setUpdateTime(new Date());
    sysRoleMenu.setDelFlag(CommonConstant.STATUS_DEL);
        return new R<>(sysRoleMenuService.updateById(sysRoleMenu));
        }

*/
/**
 * 编辑
 * @param  sysRoleMenu 实体
 * @return success/false
 *//*

@PutMapping
public R<Boolean> edit(@RequestBody SysRoleMenu sysRoleMenu){
    sysRoleMenu.setUpdateTime(new Date());
        return new R<>(sysRoleMenuService.updateById(sysRoleMenu));
        }
        }
*/
